package com.forezp.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yudashuai
 * @date 2021/06/02  15:15
 **/
@RestController
public class ConfigTestController {


    @Value("${foo}")
    String foo;

    @RequestMapping(value = "/hi")
    public String home(){
    return  foo;
    }
}
